var tableData = {
	url : ctp + "/rewardController/getProject.shtml",
	hidden : [ "projectname=NAME" ],
	propertys : [ "NAME","CONTRACTOR","ADDR","BGTIME","EDTIME"],
	opers : false,
	radio:["REC_ID",true],
	startLoad : function() {
		getListData(this);
	}
};
function searchData(curr) {
	setTagAndValue("form1", "curr", curr);
	setTagAndValue("form1","SUNNADA_PAGE_SIZE",5); 
	tableData.radioValue = window.parent.$("#projectId").val();
	tableData.startLoad();
}
$(document).ready(function() {
	searchData();
});

function addWorker(){
	var recIds = getCheckIds();
	var workerNames = getCheckIds(null, "projectname");
	window.parent.$("#projectId").val(recIds);
	window.parent.$("#projectName").val(workerNames);
	var attendance_index = parent.layui.layer.getFrameIndex(window.name);
	parent.layui.layer.close(attendance_index);
}

